<?php


$data = $_GET['data'];
$data = json_decode($data,1);
$_G['member']['username'] = $data['uname']?:'匿名用户';
$_G['fid'] = 2;
$_G['forum']['fid'] =2;
$_G['thread']['authorid'] =2;
$_G['member']['uid'] = 2;

if(!$data){
    $return['code']= '10001';
    $return['msg']= 'data invalid';
    returnjson($return);
}

$subject  = $data['subject']?:'无标题';

require_once libfile('post/newthreadapi', 'include');